package org.dreamfly.core.bean;

import org.dreamfly.core.page.PageResultSet;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Gin
 * Date: 2010-12-4
 * Time: 20:08:25
 * To change this template use File | Settings | File Templates.
 */
public interface ResultSetPool {
    /**
     * 将搜索结果存储
     * @param sessionId
     * @param searchId
     * @param pageResultSet
     */
    public void createResultSet(String sessionId,String searchId, PageResultSet pageResultSet);

    /**
     * 获取某个搜索结果
     * @param sessionId
     * @param searchId
     * @return
     */
    public PageResultSet getResultSet(String sessionId,String searchId);

    /**
     * 将映射保存
     * @param map 存有服务器名到IP的映射
     */
    public void setIpInfos(Map map);

    /**
     * 获取某个站点的IP信息
     * @param serverName 站点名
     * @return 站点的IP信息
     */
    public ServerIpInfo getIpInfo(String serverName);
    /**
     * 清空部分存储的结果集
     */
    public void destroyResultSet();
    
}
